给原版的openwrt安装Passwall |
您所在的位置:网站首页 › openwrt github › 给原版的openwrt安装Passwall |
要求原版和极致精简的OpenWRT,自己动手安装自己需要的插件。 1.官网下载最新的OpenWRT: Current Stable Release - OpenWrt 19.07.5: https://downloads.openwrt.org/releases/19.07.5/targets/x86/64/openwrt-19.07.5-x86-64-combined-ext4.img.gz
解压出img文件:openwrt-19.07.5-x86-64-combined-ext4.img 用StarWind V2V Converter 转换成vmdk文件:
2. 新建VMware Workstation 虚拟机OpenWRT: 为了更好的兼容性,虚拟机硬件选择Workstation 10.x ,其实选默认的最新的也不关紧要。 删除所有不必要的件,只保留内存,CPU,网卡,显示器。再添加一张网卡: 打开虚拟机所在目录: 删除openwrt.vmdk这个虚拟机硬盘文件: 将先前转换的vmdk文件openwrt-19.07.5-x86-64-combined-ext4.vmdk复制到虚拟机所在目录, 重命名为:openwrt.vmdk 文件大小为19,136KB 回到VMware Workstation:打开openwrt电源 运行passwd命令修改root密码,以便远程登录: 修改网络配置:vi /etc/config/network 重启网络使修改生效:/etc/init.d/network restart 默认情况下,第一张网卡eth0是Lan,IP为:192.168.1.1 第二张网卡eth1为Wan,dhcp自动获取IP。
现在可以通过web登录192.168.1.1: 查看一下已经安装的软件:system -- software:共安装117个软件。 3.远程登录到openwrt: 更换国内(清华的)软件源: sed -i 's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf 运行opkg update更新软件源: VMware 虚拟机 安装open-vm-tools opkg install open-vm-tools: 安装好后就可以看到虚拟机的网卡的IP: 软件数增加到:123 4. 安装KMS服务器: 下载所需的ipk:https://op.supes.top/packages/x86_64/ 下载这三个文件,用WinSCP上传到openwrt:
reboot Services---KMS Server:
windows 10 激活成功:
5. 安装Passwall 安装passwall 要先删除dnsmasq,然后安装dnsmasq-full opkg remove dnsmasq
然后安装passwall的依赖包: ChinaDNS_1.3.2-8_x86_64.ipkbrook_20210101-1_x86_64.ipkchinadns-ng_1.0-beta.22-2_x86_64.ipkdns-forwarder_1.2.1-1_x86_64.ipkdns2socks_2.0-20150628_x86_64.ipkhaproxy_2.0.12-1_x86_64.ipkipt2socks_1.0.1-2_x86_64.ipkkcptun-client_20200103-2_x86_64.ipkmicrosocks_1.0-1_x86_64.ipknaiveproxy_87.0.4280.66-1-1_x86_64.ipkpdnsd-alt_1.2.9b-par-a8e46ccba7b0fa2230d6c42ab6dcd92926f6c21d_x86_64.ipkshadowsocks-libev-ss-server_3.3.0-1_x86_64.ipkshadowsocksr-libev-alt_2.5.6-5_x86_64.ipkshadowsocksr-libev-server_2.5.6-5_x86_64.ipkshadowsocksr-libev-ssr-local_2.5.6-5_x86_64.ipksimple-obfs_0.0.5-4_x86_64.ipkssocks_0.0.14-1_x86_64.ipkssocksd_0.0.14-1_x86_64.ipktcping_0.1-2_x86_64.ipktrojan-go_0.8.2-1_x86_64.ipktrojan-plus_10.0.3-1_x86_64.ipktrojan_1.16.0-1_x86_64.ipkv2ray-core_4.34.0-1_x86_64.ipkv2ray-plugin_1.3.0-20200205_x86_64.ipkxray_1.1.3-1_x86_64.ipk 将以上文件上传到openwrt同一目录中: opkg install *.ipk 最后安装passwall: opkg install luci-app-passwall_4-3_all.ipk 安装成功,重启。 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |